import Vue from 'vue'
import ElementUI from 'element-ui'; // 引入element-ui
import 'element-ui/lib/theme-chalk/index.css'; // 引入element-ui样式

import App from './App.vue'
import store from "./store"; // 仓库
import router from "./router" // 路由器

import "./assets/reset.css" // 重置样式

Vue.use(ElementUI); // 注册element-ui

import Header from "./components/Header.vue" // 头部组件
import Main from "./components/Main.vue" // 主体
import Footer from "./components/Footer.vue" // 底部

Vue.component(Header.name, Header)
Vue.component(Main.name, Main)
Vue.component(Footer.name, Footer)

Vue.config.productionTip = false

new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')
